package com.geuso.xingdutch.colours;

import android.app.ListFragment;
import android.os.Bundle;

import com.geuso.xingdutch.R;
import com.geuso.xingdutch.activity.DefaultActivity;

public class ColoursActivity extends DefaultActivity {

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.main);
		getFragmentManager().beginTransaction().add(R.id.container, new ColoursOverviewFragment()).commit();
	}

	
	
	public static class ColoursOverviewFragment extends ListFragment {

		public ColoursOverviewFragment() {
		}

		@Override
		public void onActivityCreated(Bundle savedInstanceState){
			super.onActivityCreated(savedInstanceState);
			
			setListAdapter(new ColoursListAdapter(getActivity(), ColoursData.colours));
		}
	}
	
}
